<?php

/** @see Zend_Controller_Action */ 
require_once 'Zend/Controller/Action.php'; 
 
class AuthController extends Zend_Controller_Action 
{

    public function authAction()
    {

    }

    public function loginAction() 
    { 
        $form = $this->getLoginForm(); 
 
        if ($this->getRequest()->isPost()) {  
            if ($form->isValid($_POST)) {  
                $values = $form->getValues();  
                $this->view->values = $values; 
            }  
        }  
  
	$this->view->form = $form; 
	$this->view->pageTitle = 'OpenDBoard login ';
    } 
     
    /**
     * This function returns the form used for
     * adding comments in blog application
     */ 
    public function getLoginForm() 
    { 
        $form = new Zend_Form(array( 
            'method'   => 'post', 
            'elements' => array( 
                'open_id' => array('text', array( 
                    'required' => true, 
                    'label' => 'Open Id'
                )), 
                'submit' => array('submit', array( 
                    'label' => 'Add Comment' 
                )) 
            ), 
        )); 
 
        return $form; 
    } 
} 
